use another check to decide where to insert new tab