adds index pages set method