Store window configuration during navigation