added some functionality for todo list app