fix save and open file dialog