hooked views up to templates