Merging functionality for mobile on dropdowns in bootstrap.