Almost there

delete function left only
delete function

delete function is added. message boxes replaced by alert and confirm