add window resize callback impl