Make dropdown functional