 
   musicPlayer.setVolume(40, 40);
 
-  wifiManager.autoConnect("MP3-SHELF", "ikealack");
-  
+  wifiManager.autoConnect("MP3-SHELF", "lacklack");
+
   Serial.print("Connected! IP address: ");
   Serial.println(WiFi.localIP());
 
   server.on("/playMp3", HTTP_GET, handlePlayMp3);
   server.on("/stopMp3", HTTP_GET, handleStopMp3);
-  server.on("/list", HTTP_GET, printDirectory);
-  server.on("/edit", HTTP_DELETE, handleDelete);
-  server.on("/edit", HTTP_PUT, handleCreate);
-  server.on("/edit", HTTP_POST, [](){ returnOK(); }, handleFileUpload);
+  server.on("/", HTTP_POST, handleNotFound, handleFileUpload);
   server.onNotFound(handleNotFound);
 
   server.begin();


MFRC522::MIFARE_Key key;

// Init array that will store new NUID
byte nuidPICC[4];

boolean playing = false;

File currentFolder;

File uploadFile;


void setup() {
  Serial.begin(115200);

  SPI.begin();        // Init SPI bus
  mfrc522.PCD_Init(); // Init MFRC522 card

}

void switchFolder(const char *folder) {
  Serial.print(F("Switching folder to "));
  Serial.println(folder);

  if (!SD.exists(folder)) {
    Serial.println(F("Folder does not exist"));
    return;
  }
  SD.chdir(folder);
  SD.vwd()->rewind();
}

void stopMp3() {
  playing = false;
  musicPlayer.stopPlaying();
}

void playMp3() {
  SdFile file;
  while (file.openNext(SD.vwd(), O_READ))
  {
    char filenameChar[100];
    String filename = "/";

    SD.vwd()->getName(filenameChar, 100);
    filename += filenameChar;

    filename += "/";
    file.getName(filenameChar, 100);
    filename += filenameChar;

    file.close();

    if (!file.isDir() && isMP3File(filename)) {
      Serial.print(F("Playing "));
      Serial.println(filename);

      playing = true;
      musicPlayer.startPlayingFile((char *)filename.c_str());
      return;
    } else {
      Serial.print(F("Ignoring "));
