Trying to fix delete box problem and not able to find it. Will revert to old method of promises