pagination added to history