added code to draw a dial