added setResult to support startActivityForResult