add window resize listener for hideAddressBar