Added templates. Fixed views.