properly remove resize listener from battle component