modify index and show views for posts