PHB1 data structures reorganization
connecting gui and data