Added automatic scaling for smaller screens