added delete post function