store last viewed page data by name instead of index