added a function for updating dm settings