added ability to edit posts