added a scroll listener for the recycler view