finished dropdown functionality