Fixed some small bugs in posts,added editPost