Hooked up the mode filters back to the JS: