added delete functionality to posts