made window size dynamic
Merge pull request #1 from Corm/master

made window size dynamic