added delete handler for post edit page