added mouse control