WiP on closing the pushed files dialog

dialog contents are moved around the DOM rather than being removed. Also
they're in different places if the dialog is open in another browser.

Use visibility to check if the dialog is open.