resize issues fixed for expected window sizes