made per-page come from constants file