Refactoring: delete toggleTask()

Signed-off-by: Simone <hello@simonewebdesign.it>