fixed the missing end statement in application_controller