change backgrounds for each group