Added Tree functions for Visit based on patient selection. Tabs close when patients are changed. Wiring up to visit tree next