retrieve activities and units for tree pharma filtering
move to latest rails
stop the search being called twice due to quirk in Router params.
Use the search controller model for total results