Site model added to Viewpage

Site model added, and reengineered some stuff