Added future border-box CSS.
Preliminary work for delete button.
Added WIP delete button closing code.
Fixed poor performance.