refactor(popover): refactor popover state to support data from trigger