Refactor members list and add a pagination function