implemented checkedbox and triangle