A better resizable window
Change code to use new interface