Added callback for window resize