add cursor selection