file dialogs

Maybe add a comment above this that we have a TODO to remove this, and do in an extension or something.