adding edit feature to posts