Using action button to save residuals