added views for all records types and converted all views to use standard record-handling functions