Added feature to edit posts