controller and routes for app