adding edit and update to GroupsController