add window scroll detection