added refresh and add with objective-c