Adding popover functionality

Added popover functionality with a new file to organize and facilitate
future maintenance based on scenarios.