added button to change modes. works flawlessly