created templates to edit and display posts.