minor change to previous commit... added some code to prevent adv search code from running same query multiple times (since previous search parameters are saved and may be duplicated)