Add model as method to view base class