Fixing a bug where events were rebound to tabs on refresh without unbinding