added a post deletion view and updated the template with JS