added support for different screen sizes