delete the implementation of the Window-Listener