x working for dialogs