modify header and pagination