resizable window and using display for width and height