more complex logic for highlighting sections; may be experimental

either way, seperate logic out into a helper more easily locally customized