Create dialog with result