add dropdown function.