working on popover (not all snippets in place)