split the gui and data structure elements