add generating html from template files, not hard-code