Break PaneManager down with mixins

use mixins to isolate related functions for adding collapse buttons and toggling a pane.