add todo and delete todo integrated with controller