added the new, update/edit posts methods and changes to the views to be able to access the posts.