made the batch create buttons enable/disable, refactored the checkbox javascript