using enterDocument to add event listeners

I tried deserializedFromTemplate and enterDocument to add event listeners in a rather complex case, enterDocument seemed to work more better. not sure if there is something else in here that depends on being in the deserializedFromTemplate?