break html template options into their own function