Save the last view properly