Cleanup logging
Fix syncState
Don't use deprecated method
Cleanup minimizing / maximizing todo headers