add delete confirm box and modify modal errors