fixed search filter path to work with PathName

and two minor style fixes