Send the right object when removing panel
Removing useless part