Making it possible to update the list when the perPage quantity changes