Custom fields

- add the ability to choose which fields are displayed
- fixes pagination
- adds total pages