add toggle task function.