switching to the new tab after creating it