Working on base class for panel controller