added varfields and cleaned up bib record and view relationship