update groups info every time you open the panel