switch between login and main widget

Instead of stacking widgets, remove and add them when needed.
Fixes problems related to widget height and window resizing.