Added ability to create and update posts. modified post views and controller