update togglecursor