cleaned up templates,added some models, clients page works now.