adding routes and controller