template toggle helper added