added some routes and modified base controller