fixed incorrect number of display objects, was error in removing previous DOM elements