Updated generate table and run table

Made generate table and run table buttons work as backgroundworkers