updated index.html.template delay func