added url = window.location