Added an error view

closes #369