swap tab and return