Save changes made inside the fragment.