minor refactor in on article selected