Added error view

closes #369