passing in todo id. only works when refresh