cleanup for mainwindowUI, fixed some size issues