updated sidebar to only fire on window.load