Connected the graphical grid with the createstructure functions