made pagination simple