Rendering references as nested form, needs style cleanup