block links and scripts on page load