viewer: add convenience functions to clickable segmentation layer