added mouse lock feature