Added sidebar save before sleep