cleaning up default error and loading views.