created functionality to edit a group