Panel: Correction in event unbinding. Code cleanup.