Cleaning up events. Getting data to content script.