added edit function for the user on all posts created from the blogs page