no longer need showTodo function
extract addNewTask function to factory