add gui (state manager)