implement delete functionality for posts