Open ElectStateCintext constructor