Adding update and location to materialcontroller
working on update and create material