Added the option to edit existing posts.