corrected the updated_list update in controller.py