Blocking harmful UV rays and controlling pupil size