updated todos controller to display the number of remaining todos dynamically