Added onActivityResult to settings page