refresh status bar every second