add application_controller and update routes