handle window resize

upon Karmapa request