Handle Dialog Setting Material