Refactored PUT and editMode in modal. Still weird bug where level get's updated to level 1 no matter what we send in the put request.