Use sender.tab instead of a tab in the current window