imporve paginations, add last and first