register vbox in inner class