dual search working

tree now updates with both searches in dual search. Things still to do:
comment code, refactor (heavy refactoring needed, lot of repetition)
better colours for clarity, buttons for both searches