handle window resize event in playbook