add query error handler
added model
added state overview custom model class