RobotStudio event

uishow of rab screen question

hello, in my rapid program i call my RAB screen from rapid code.
it opens ok.
after that i use the operator window to show some other messages with tpwrite.
after that in my rapid code i call again the rab window to show up in front of the teachpendant
But it keeps showing the operator window and not the RAB window.
the RAB window is still open, it just don't show in the front, it is the operator window that keeps in front with the last tpwrite message.
i have to click on it manually each time on the window bar at the bottom of the teachpendant

i use the first time:
 CONST string Name:="TpsViewIRC5App13.gtpu.dll";
 CONST string Type:="ABB.Robotics.SDK.Views.TpsViewIRC5App13";
 VAR num mystatus:=0;
 UIShow Name, Type InstanceID:=myinstanceStatus:=mystatus;

then i use : tpwrite "some messages"

after that i use:
 UIShow Name, Type InstanceID:=myinstanceStatus:=mystatus;

in the manual it says that this command will activate the screen when used with the same instanceid, but it doesnt do it

any help on what i am doing wrong