added alert control, delete is now working