added ability to disable tree view
reworked tree/thumb visibility logic