added localization and fragment retention