added controls to toggle midi mode