Updated the routes and actions