Add item selection behavior to hierarchy widget