fix set customView issue when state not change