add updateDial function for dial