Replace confusing and cumbersome render methods with renderWithParent