Fixing Multisites, setting template as a variable