Adding a fucntion fetch from URL