Fix variable name bug in Arduino code
Refactor media control to work with new structure