update and delete posts