regenerate button clears existing pattern