added update functionality to dash