Make run button update csv files
Fix erroneous before/after constraint function call