added topic pagination to admin ui and fixed nexttoken logic