using window height instead of innerHeight