dialogs now have a state assiciated with them. OVERLOADING THE DIALOGS