added selection by mouse and command