updates to allow editing of posts