Changed dialog opening for existing dialogs

Added classes to indicate if the dialog has been initialized or not