Materials controller created
new materials are cleared when the dialog os closed
Allows materials to be edited
Merge branch 'refactorMaterials'