g-panels: make sure index/selected is properly rendered when inserted.