please send a picture of working with go to object if you can.
You can name each type using the Inspector (make sure you select the Tab itself):
In your script found out which tab was displayed before you navigate away and make sure that tab gets in front when you come back in your script.
In your script:
//Get the current front tab
Set Variable [$TabName ;
GetLayoutObjectAttribute ( "tab.Tab1" ; "isFrontPanel" ) ; "tab.Tab1" ;
GetLayoutObjectAttribute ( "tab.Tab1" ; "isFrontPanel" ) ; "tab.Tab2"
//Add your script routine moving to any other layout
Go to Layout [original layout]
Go to Object [Object Name: $TabName]