Modificare e terminare un'attività