added demo of checkbox logic