update groups model and controller