mode line, refactoring