some small changes and a new function to go from post.html to edit.html