add ui self in define inspections class