created switch units feature for weight converter