check the last page number
modify some message