In the middle of trying to figure out how to render nested templates on state change