Added resize window, changed environment