clear out output element when new content comes in
remove unused DOM elements