fixing status persisting as 'online' when it isn't for pm tabs