Changeing open ing of file to window