added duration time to modal