working view using template