Correctly resize window on switching between views - work in progress
Correctly resize main window, view and widgets