Sorting out some Dialog/DOM issues!