adding session functionality and only updating newest posts