Updated create, edit, update posts controller and views