js fixes for groups tab