fixed small errors in routing and controllers