query error handling and style updates