moving recent item logic to server per Laurent Ribardiere advice.