change to dropdown code