I don't understand why you are overwriting this.panel everytime.
Why now var panelElement = .... ?