made the delete button as a post method