Update CSS mode index handler