add window resize event for widgets