view and error rendering