added text scaling for smaller page sizes