delete materials functionality part working - delete's materials but doesn't take away ajaxy.
fixed ajaxification of materials deleting