if current task exist in window.load, store it