add batching to gui