// refresh image button backgrounds
  private void refresh() {
    refreshButtonBackground(
        walkImageButton,
        Storage.getOutputMediaFile(InsertMediaToCharacterActivity.this, fighterName, "walk.png"));
    refreshButtonBackground(
        standImageButton,
        Storage.getOutputMediaFile(InsertMediaToCharacterActivity.this, fighterName, "stand.png"));
    refreshButtonBackground(
        punchImageButton,
        Storage.getOutputMediaFile(InsertMediaToCharacterActivity.this, fighterName, "punch.png"));
    refreshButtonBackground(
        kickImageButton,
        Storage.getOutputMediaFile(InsertMediaToCharacterActivity.this, fighterName, "kick.png"));
    refreshButtonBackground(
        takeHitImageButton,
        Storage.getOutputMediaFile(
            InsertMediaToCharacterActivity.this, fighterName, "take_hit.png"));
    refreshButtonBackground(
        crouchImageButton,
        Storage.getOutputMediaFile(InsertMediaToCharacterActivity.this, fighterName, "crouch.png"));
    refreshButtonBackground(
        victoryImageButton,
        Storage.getOutputMediaFile(
            InsertMediaToCharacterActivity.this, fighterName, "victory.png"));
    refreshButtonBackground(
        defeatImageButton,
        Storage.getOutputMediaFile(InsertMediaToCharacterActivity.this, fighterName, "defeat.png"));

    refreshButtonBackground(
        hitVoiceImageButton,
        Storage.getOutputMediaFile(InsertMediaToCharacterActivity.this, fighterName, "hit.3gpp"));
    refreshButtonBackground(
        takeHitVoiceImageButton,
        Storage.getOutputMediaFile(
            InsertMediaToCharacterActivity.this, fighterName, "take_hit.3gpp"));
    refreshButtonBackground(
        winningVoiceImageButton,
        Storage.getOutputMediaFile(
            InsertMediaToCharacterActivity.this, fighterName, "winning.3gpp"));
    refreshButtonBackground(
        victoryVoiceImageButton,
        Storage.getOutputMediaFile(
            InsertMediaToCharacterActivity.this, fighterName, "victory.3gpp"));
    refreshButtonBackground(
        defeatVoiceImageButton,
        Storage.getOutputMediaFile(
            InsertMediaToCharacterActivity.this, fighterName, "defeat.3gpp"));
  }
 @Override
 public void onClick(View v) {
   Intent intent;
   switch (v.getId()) {
     case R.id.insert_media_walk_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, TakePhotoActivity.class);
       intent.putExtra("type", "walk");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_stand_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, TakePhotoActivity.class);
       intent.putExtra("type", "stand");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_punch_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, TakePhotoActivity.class);
       intent.putExtra("type", "punch");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_kick_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, TakePhotoActivity.class);
       intent.putExtra("type", "kick");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_take_hit_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, TakePhotoActivity.class);
       intent.putExtra("type", "take_hit");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_crouch_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, TakePhotoActivity.class);
       intent.putExtra("type", "crouch");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_victory_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, TakePhotoActivity.class);
       intent.putExtra("type", "victory");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_defeat_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, TakePhotoActivity.class);
       intent.putExtra("type", "defeat");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_hit_voice_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, RecordVoiceActivity.class);
       intent.putExtra("type", "hit");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_take_hit_voice_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, RecordVoiceActivity.class);
       intent.putExtra("type", "take_hit");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_winning_voice_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, RecordVoiceActivity.class);
       intent.putExtra("type", "winning");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_victory_voice_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, RecordVoiceActivity.class);
       intent.putExtra("type", "victory");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_defeat_voice_imageButton:
       intent = new Intent(InsertMediaToCharacterActivity.this, RecordVoiceActivity.class);
       intent.putExtra("type", "defeat");
       startActivityForResult(intent, 0);
       break;
     case R.id.insert_media_done_button:
       if (Storage.isComplete(InsertMediaToCharacterActivity.this, fighterName)) finish();
       else
         Toast.makeText(
                 InsertMediaToCharacterActivity.this,
                 "You have to add all photos and voices before proceding",
                 Toast.LENGTH_SHORT)
             .show();
       break;
     case R.id.insert_media_delete_button:
       Storage.deleteFighter(InsertMediaToCharacterActivity.this, fighterName);
       finish();
       break;
     case R.id.insert_media_back_button:
       finish();
       break;
   }
 }