setup error handling and UI