added delete button to pattern view. Still need to add confirmation message