Add comments for onValueChange method