added page credit and pagination