Changing windows

I have tWo windows “main” and “install”

How can I change from one to another?
I tried

On clicked theObject
Hide window “install”
Show window “main”
End clicked

But it doesn’t work(