adapted button
added onActivityResult