Added functionality to delete posts