Added base class for plugin and admin