make PER_PAGE configurable in settings