stop resize from happening on page load