add element state