pass id as param to beforeUpdate