Removed unused element ref
Removed unused method
Moved header back logic into panel_utils module