make hook for changes to a group