bind and preview dialogs