fix duration and disabled prev button for day < today