Lots of work on sidebar

Lots of sidebar work. Still doesn’t work as should. Having to create
protocols to make item selection work as well as open/close detection