Add delete confirmation as function to the jsp api