added the activity for result