added routes for posts view.