working y-max slider and orbital selection