update application_controller