Added support for changeable screen size