changed delete process to POST request/JS click event instead of GET request