implement error action and view