created a delete button to delete posts