dawning on me that event listeners should be in the top level scope_
)
moved listener to reset tabs on entry removal to top scope