updated tracking code
added template files