pattern infrastructure completed, but there are still no fields. Also added custom listwidget for patterns