added html template functionality to the program