Added output toggle function
Added output toggling button