filter forms index corresponding to type and template