fix js, popup before delete