Add methods to manage cursors and selections