Created a new toggle function in kotest.html