change HTML template mechanism