use of template for scala/html