toggleclick logic correction