showPatternFrame and ShowPatternTask