correct counting number of undone items
update appcache