Hi maxim.
You want to exit_form r you dont want to see the 2 and 3 rd form. If you dont want to see 2 nd and 3 rd form when you are at 1st form use set_window_property.

Thanks
ABC