updated the adapter to show page info