added collections to manage next and previous pages