handle unit dropdown change event properly in Firefox