modify material and role close popup bug