Fix bug in duration calculations.
Fixed issues with tableview insets and layout.