Added initial version of the popover functionality