probem solved
toggle functions
toggle finished
state condition
some changes