adv search function complete; not yet integrated into controller