Add onRelease handler