Changed window variable to root
Merge pull request #2 from txgruppi/fix-removed-window-reference

Changed window variable to root