added some js for button toggles