made changes to redirect to include commiting the updated fields