pass a parent to all dialogs