fixed #9: switching to the new tab after creating it