Resizing windows

Resizing windows now works well.