add toggle task function.

add toggle task function.