added ability to edit leg time