now the template based ont the done attribute render the done or not done task, toggle state just set the attribute to the model