add support for expanding the selected region