Factor highlighting check into loadData