added line to clear out gallery between searches