Title of my game remains when I open another tab

When I open the play/donation tab, the title is still visible (but only the text)
What should I do so it closes, but when I close the play/donation tab opens?

reference the title and the button, then make it not visible when the donation tab opens

in pseudocode (won’t work if you copy paste):

local title = gui.Title
local donation = gui.DonationButton

button.MouseButton1Click:Connect(function()
    title.Visible = false
end)

Thank you a lot! It will help.