before triggers for adv search and quick search

added before trigger calls for advanced search and quick search