generator now works with buttons and better shows the status of a file