cleanup and fix positioning in scrolled window.