changing window initializing. Starting fix of input code.