updating main page and all template files