Improve constructors of view class
Update state constructor