rewrote pagination as a timed loader