added some functionality for adding todo-items