Add textboxes for patterns