-- << SETUP SEARCH BAR >>

local searchDe = true
frame.SearchBar.Frame.TextBox.FocusLost:connect(function(property)
	if searchDe then
		searchDe = false
		local page
		for i,v in pairs(pages) do
			if v.Position.X.Scale == 0 then
				page = v
			end
		end
	    if page then
			local functionName = "Create".. page.Name
			module[functionName]()
	    end
		wait(0.5)
		searchDe = true
	end
end)


