fix dumass code and improve paginate UX