implemented hide template before know it