added posts index and template