show offline msgs before online for qlrankstv, refactoring