added hidden input elements to checkbox