improve html toggle