modal base class