Added resize listener for nav bar