using scala template to build view