show and hide events on dialog 2