add inner class loading