Move pager data to component