working with cinfiramtion dialog