Fix the duration widget logic and set a good default
Merge pull request #2428 from iakshay/duration-fix

Fix the duration widget logic and set a good default