use state instead of completed flag.  add html title.