cleanup for routes and controller