finished the edit within a created site template, will need to refactor, could not finish all the way, sharepoint has a defect.