Added 'last page visited' functionality to dashboard