added template to special category; The stack of template insertion modes