Added support for various screen sizes