added magic-views to deps
handling 404 errors in a nicer way