Fix delete button issues by calling removeListener() instead of clearListeners().