Added update and create methods and views for posts