add function of receiving data from sub-activities with
startActivityForResult() and onActivityResult()