implemented KO templates, view model changes