changed pages option to templates