update cocoframe.
enhance some function