Called when the dialog is resumed. Sets up the back button listener to save settings when the user navigates back if changes have been made.