the duration widget is now getting and setting the duration value in appropriate format