move event listeners to treeview
clean up content script initialization