Improved back-button functionality so the last view is only restored when actually clicking the back button rather than a link taking to the same page.