changed for delete post type
adding route for delete