file dialog moved to separate file