add scroll & resize events