bug fix and delete confirm