added delete functionality for posts