created posts index
created view for posts