Added automatic material creation when cms navigation is passed