a bunch of changes
the windows is now properly resizable