Handle dialog cancel event.

When dialog cancel button clicked. Dialog should be dismissed.