refactors the code on the overview text control to be simpler
removes a stray var from the last refactor