added maximum scale for viewport