added comments code for posts index