add code to check if the source is setted or not in the method fetchDataOfPage