unifying templates. real solution should involve JS I guess