Make dropdown list functional