is there any function that can tell if the page is being loaded for the first time? I need to call a function only when the page is initially loaded.