Controller template alteration to support generics