fixed minor bugs in delete popup