Made some code changes to window in constructor