[Global script] add function to refresh page after back button