Add and edit material dialog ready.