mode buttons change color when activated, coords update when dragged