adding prevoius window