Sidebar and join selector

a joint selector and a descriptive sidebar have been added, man why did
I not think of the sidebar sooner so nice for debug.
Brush up on main

moved some functionality of main to make it easier to understand and
work with.