use beforeChange event to remove line class before line handles change