change to use mouse only under visual mode