Implemented screen size detection;