Update to mouselistener so that it captures the mouse pos too