rewrite SaveFileWindow to match the structure