Refined casesSearchClick code, removed caseLoaded parameter