set up routes, controllers and views for posting