updated the controllers and added routes for post