added ability to delete patterns; updated user view to render correctly if no patterns