Fixed rendering of sub elements, converted all methods to be called on __runtime