C: Added a delete post(pts) button added, and the javascript and api for it