Minor code cleanup. Fixing weather widget's units toggle feature