refactoring of utilityPanel & Listener