added mouse updating