Edit schedule with modal working