added script download on successful save/update