update level system and add limitPage function