updated todo.php to reindex array after remove