fix inner classes layout
autoset parent's component when create a class child
add integration tests