better way to handle child view rendering