bit of refactoring and tidying things up
Isolated the problem
Outline window width fixed. Fixes #31