Controller - check if dialogs exist before creating them