get child or parent activity works