add insertindexpage. Need to do some recursion in else of insert still though