starting to add view template functionality