initialized simple pagination