add scroll acrion to sample code