Fixed the running and updating of UI. Only missing the saving ability for the CSV file.