added click listener to delete post