tristate methods in checkbox