Setting previous status after being offline