removed testing console.logs, and created an if statement withing the editMem function to only run the for loop if there are checked values to populate to increas performance