add smart mode line