added component to handle checkbox checking