updated updateBlog function to reflect new edit view