Moving switchTab to UTILS.addEvent