HC record edit page, and minor bugfixes ---CONTAINS ERROR---
HC record edit page ---NOT WORKING, NO ERROR---