added event handler to dynamically save the dashboard config