added function to change url
removed console.log