Making view-container to be inherited