update groups controller and routes