after adding post, redirected to index to view post