added selection with cursor