added swtich function to ToDo list