adding crude but working pagination