writing out all data on click and save