adding show/hide button to pattern/show