Adds checkbox functionality.  Refactors form_gen method into helper methods.