corrected group-colors (as good as possible), moved stuff from callback to controller