add global window size
fix rendering of cubes