add saving for window's positions