Added automatic selection of done and todo