add initView support