add delete post function