Change the Window
 message handling into a simpler Update method.