Add togglecursor and lastpos