Optionally switch to tab