added comments and function view post
foreach'id over LI elements