handle url on page load