fix static member

so that the MakeWindow can be called more than once.
take window sizes of window creation

and add display change message
whitespace