Add smart mode line