Added ng-submit on forcalling addToDo function and changed button to submit type