added dropdown functionality