fix ends for activity_controller