implement scroll and detect bottom scrolled listener