checkbox and form functionality