prepared skeleton of onActivityResult