Updated windowing code to allow resizing
Updated windowing code to allow resizing