adjusting application_controller