several fixes for checkbox, updated form example