Hook up remove identity buttons and automatically insert blank identities when needed.