[307] Finished removing code from _dgu_util.html, involves some duplication but can be optimised later