change active tab in extension when browser wnidows are switched