addpatternpanel