Add functionality to view and create posts