Changes dropdown code to be consistent with bootstrap 3