add dropdown button functionality