refreshStatus when loading page