added single select and range select feature