created view and controllers to add new post and edit existing post