change insert method ,add next page index,change lib