Moved code from main to render window class