adding window resize event to board view