Enhanced to add a new task with schedules.
Fixed to detach schedules from a task.
Arranged to assign a new schedule to a task.
Fixed unexpected checking/unchecking of the CheckBox.

When a CheckBox is reused, the event listener in it is kicked in
initializing. This patch avoids this bug to set the listener before
initializing state.