base classes for mvc