checkbox and radiobutton implementations