fixed exception if entered page value is not number
some comments to fix