add rawQuery to layout for details view