dialog manager has global variable that saves the last dir