fix widget bug
modify view class to extended