adding some basic pagination... still need to test it some more