added ability to created and edit posts