- fixed a bug where saving editted materials (without edit button trigger) would result in wrong data structure in db
- fixed code with call to wrong class
- code before working on the export system for reference materials