updated and added more methods to todo_list.rb controller