Refactored Dialogs, now diorectly using JQuery UI instead of WiQuery.