1. new jQuery UI css added.
2. duration time calculation refactored.