Fix bug, removing last active window

* Now check if it's the last window and do not try to swap tabs
When no active tab is displayed, removing the tab now does nothing
Recalculate weight label location on changes to intermediate points