add page index in source file