Use currently opened filepath in dialogs