Added support for resizing screen