Used provider to find link and added boolean to fetch data or not