Added new and edit post feature