Modified so EVERYTHING (already existing) works with the new gui, which is global now.