added paginator to history page