update waitDialog, fix underscore dependency