smart mode line