Fixed all the routing and created the controller