added toggle function to checkbox