removed window class. changed hp update