event handling and preloading improvements