Remove strtolower statements and alter base tag in template