window creation process coded, but not tested