update smart mode line