added multiple views and template functions