set ['dropdown_and_search'] = false in else statement