Added time delay before removing DOM elements