implemented the functionality of showing the group as highlighted