Add onUpdate to Block