Added clearing of todo in view and route.