Are you having a problem with the placement of the spawned pages, or do you mean that you just want to "jump" to the second to last page after the new pages are added? If the latter you can do it using this code:
this.pageNum = this.numPages-2;
Thank you so much! Exactly what I was after!