added delete functionality, finished off CRUD features for posts