new class for tool panel for better flowing code
the layered panel class no longer accesses the listener class’s state