hide dialog on clicking `ok` buttton.