using mapCommand in Todo demo