Fixed issue in UI that decreased scheduler throughput by 5x or more

Removal of items from ArrayBuffers in the UI code was slow and
significantly impacted scheduler throughput. This commit
improves scheduler throughput by 5x.