Close views on page change.