bugfixes and smarter options for selectboxes, checkboxes and radio