Made minor changes in app_controller