toggle cover element visibility on show/close of dialogs