switch todo's model between edit and show