added delete post link and added code for functionality