modify dump_updated_list in controller.py