toggle completed class when task complete set to true