add dropdown logic