dialogs are now properly drawn
dialogs are now working