Connect gui to Main.hs