add scroll event handler