groups array changed to allow for added tabs