change initialization methods so that alterations made to the element array during deactivation take effect on activation

In other words, the this.elements list is updated each time it activates.