implemented html templates