creating posts index