add update action to GroupsController