added routes and controller methods