can we show and hide dialog