Many parts of the UI are collecting duplicate functions and templates, these should be collected and put into utility classes and structures.