Add support for targetting class to API and Details view controller