Added preview dialog.