Added mouse mode toggle