a component can trigger event when move to the last item