added edit to posts. currently having patch error