Sets window: implemented save and restore buttons