added template testing function
fixed assets