Also renamed setViews() to setPages(), and moved the index argument in insert() to be the first arg. Closes #641