convert pages to be template based not option based