created checkSite & loadSite logic