added the ability to edit a post and its categories