layout manager now manages window resize too.