Added dialog to sample