added some logic to todo app with angular