Updating destroy method, adding listenKey to resize event