made calculator auto-resize for smaller screens