Return collected attributes when save button is clicked