Added the toggle completed task function