Less bulky code for dialogs