Handling events on the batch size input better