favorite function added; add jinja in HTML