Refactor all the things. Extract display, footer, and pagers logic.