reset couple of bits on open of the dialog