Code cleanups. Fixing tabbed pane stretching outside bounds.