define view as base class