add paginate to history page and delete useless files,fix tablePage.js