changed the slight flickering on page load