change fucntion for CCMenuItem