more cleanup on IDPair stuff, add init stuff to gui/container