Add a sample of dialog from ui file