cleanup and html5 notifications