Update views {error,index} with cleaner source code
Merge pull request #3 from philipptempel/view-normalizing

Update views with cleaner source code