Simplify index logic and show view.
Merge pull request #20 from darkmoves/create-view-partial

Simplify index logic and index view.